<template>
 <div>
   <van-nav-bar fixed title="收藏列表" left-arrow @click-left="$router.go (-1)"/>
    <van-list>
      <my-favorate v-for="(item, index) in list" :key="index" :item="item"/>
    </van-list>
  </div>
</template>

<script>
import myFavorate from '@/components/myFavorate.vue'
import { getArticleFavorate } from '@/api/article'
export default {
  components: { myFavorate },
  data () {
    return {
      // loading: false,
      // finished: false,
      list: []
    }
  },
  async created () {
    const { body } = await getArticleFavorate()
    console.log(body)
    this.list = body
  },
  methods: {

    // onClickLeft () {
    //   Toast('返回')
    // }
  }
}
</script>

<style>

</style>
